package com.kfm.pm.generic;

import java.util.HashSet;

public class Student<T, E> {
    private T key;
    private E value;

    public Student(T key, E value) {
        this.key = key;
        this.value = value;
    }

    public T getKey() {return key;}

    public E getValue() {
        return value;
    }
}

class Test {

    public static void main(String[] args) {

        HashSet<Student<String, Integer>> students = new HashSet<>();
//        students.add(1);
        students.add(new Student<>("", 2));
    }
}
